package cn.bsuc.crm.entity;

import cn.bsuc.crm.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 客户流失表
 */
@Data
@TableName("t_customer_loss")
public class CustomerLoss extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String cusNo; // 客户编号

    private String cusName; // 客户姓名

    private String cusManager; // 客户经理

    private LocalDate lastOrderTime; // 最后下单时间

    private LocalDate confirmLossTime; // 确认流失时间

    private Integer state; // 流失状态

    private String lossReason; // 流失原因

    private Integer isValid;


}
